export default class PixivTokens {
    /**
     * 令牌
     */
    accessToken
    /**
     * 刷新令牌
     */
    refreshToken
    /**
     * 过期时间
     */
    expiresIn
    /**
     * 令牌类型
     */
    tokenType
    /**
     * 权限范围
     */
    scope
    /**
     * 最后一次刷新时间
     */
    lastRefresh

    constructor(accessToken, refreshToken, expiresIn, tokenType, scope, lastRefresh) {
        this.accessToken = accessToken
        this.refreshToken = refreshToken
        this.expiresIn = expiresIn
        this.tokenType = tokenType
        this.scope = scope
        this.lastRefresh = Date.now()
    }
}
